import FriendService from "@src/services/FriendService";
import { IReq, IRes, INext } from "@src/routes/common/types";

class FriendController {
    getList = async (req: IReq, res: IRes, next: INext) => {
        const userId = req.userId;
        const result = await FriendService.getFriendList(userId as number);
        res.json(result);
    }
}

export default new FriendController();